# 1、运算符
# 算术运算符
# +
# -
# *
# /
# %
# **
# //
a = 3
b = 4

print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a % b)
print(a ** b)
print(a // b)

# 赋值运算符
# =
# +=
# -=

str = "hello"
a = 3
a += 5  # a = a + 5
print(a)

# 比较运算符
# ==
# != #<>
# >
# <
print("hi" == "hello")
print(3 > 4)
print(3 != 4)

# 逻辑运算符
# and
# or
# not

t = True
f = False
print(t and f)
print(t or f)
print(not t)

# 成员运算符
# in
# not in
print("p" in "python")
print("p" not in "python")